package org.example.winter;

/**
 * BeanDefinition实现类
 * 
 * @author YHG
 * @date 2020/8/21 16:33
 */
public class GeneralBeanDefinition implements BeanDefinition {

    private Class<?> beanClass;

    private String scope = BeanDefinition.SCOPE_SINGLETON;

    @Override
    public Class<?> getBeanClass() {
        return this.beanClass;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }

    public void setBeanClass(Class<?> beanClass) {
        this.beanClass = beanClass;
    }
}
